package com.m4f.docs.ifc;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;

import com.google.gdata.util.ServiceException;

public interface IDocumentalService {
	
	
	public void createCompanyContainer(String companyId) 
		throws IOException, ServiceException;
	
	public void removeCompanyContainer(String companyId) throws Exception;
	
	public void downloadDocument(String companyId,String filename, 
			OutputStream outputStream) throws IOException, MalformedURLException, ServiceException, Exception;
		
	public void addDocument(String companyId, 
			String filename, byte[] content) throws Exception;
	
	public void removeDocument(String companyId, String filename) throws Exception;
	
	public void downloadPDF(String companyId, String documentName, OutputStream outputStream) throws Exception;
	
	public void updateDocument(String companyId, String documentName, byte[] content) throws Exception;
	
	public boolean existDocument(String companyId, String documentName) throws IOException, ServiceException;
}